<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新闻中心</title>
<link rel="stylesheet" href="/home/css/style.css" >
<link rel="stylesheet" href="/home/css/jquery.bxslider.css" >
<link rel="stylesheet" href="/home/css/reset.css">

</head>

<body>
<!--头部-->
@include('home.header')

<!--轮换图-->
			 

	<div id="News">
			<ul class="top_News">
				<li class="News_left">
				<div class="gywm_liebiao">
                    	<ul>
                        	<li class="gywm_lbname"><span class="spa">新闻中心 </span><span class="spb">News</span></li>
                            <li class="gywm_lb">
                            	<div>
                                	<ul>
                                	@foreach($result as $val)
                                	<li><a href="/newscenter/news?id={{$val->id}}" onClick="toggle('1')">{{$val->name}}</a></li>
                                	@endforeach
                                   
                                    </ul>
                                </div>
                            </li>
                        </ul>
                    </div>
					<div class="Name_liebiao">
                    	<ul>
                        	<li class="Name_lbname"><span class="spa">相关新闻 </span><span class="spb">Name</span></li>
                            <li class="Name_lb">
                            	<div>
                                	<ul>
                                	<li class="xw_Name"><a href="#"><b><font color="#FF6600">华商动力：专利质押,企业融资</font></b></a></li>
												<ul>
												<ol class="News_images"><img src="/home/images/xinwen.png" /></ol>
												<ol class="News_neirong">2013年08月07日，华商动力学院正式挂牌成立，至此华商动力集团将为...<P><a href="#"><font color="#FF6600">详情 >></font></a></p></ol>
												</ul>

									@foreach ($months as $mon)
									<li class="xw_Name">
										
									<a href="#">{{$mon->month}} ({{$mon->records}})</a></li>
										@endforeach
									
                                    </ul>
                                </div>
                            </li>
                        </ul>
                    </div>
				</li>
				<li class="News_right" id="div1" >
						<div class="gywm_xp"></div>
						<div class="gywm_rightName">
							<ul>
								<li class="gyName">企业新闻<span>News</span></li>
								<li class="gyyou"></li>
							</ul>
						</div>
						<div class="News_right_xw">
							 @foreach ($data as $val)	
							  @if($val ->top == 1)
								<div class="News_xinwen">
									<ul>
										
										
										<li class="News_xwimages"><img width="100%" src="{{$val ->thumb}}" height="160px" /></li>
										<li class="News_xwneirong">
											<div>
												<ul>
													<li class="xwmingc"><a href="/newscenter/news_info?id={{$val->id}}">{{$val->title}}<font size="2" color="red"> [顶]</font> </a></li>
													<li class="xwshijian">日期：{{date('Y-m-d',$val ->time)}}</li>
													<li class="xwneirong">{{$val->description}}</li>
													<li class="xwxiangqing"><a href="/newscenter/news_info?id={{$val->id}}">详情</a></li>
												</ul>
											</div>
										</li>
									
									</ul>								
								</div>
								@endif
								@endforeach
								<div class="newslist">
									<ul>
								
									@if($data->isEmpty())
								    没有了
								    @else	
									 @foreach ($data as $val)									
 									  <li>
										<div><a href="/newscenter/news_info?id={{$val->id}}">{{$val->title}}</a></div>
										<span>{{date('Y-m-d',$val ->time)}}</span> </li>
										
									   @endforeach
									@endif
				
									</ul>
								</div>	
						</li>
							

			</ul>
		</div>

 @include('home.footer')   

	<br />
</div>	


<script type="text/javascript" src="/home/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="/home/js/jquery.bxslider.min.js"></script>
<script type="text/javascript" src="/home/js/jquery.kkPages.js"></script>
<SCRIPT src="/home/js/jquery.bxslider.min.js" type=text/javascript></SCRIPT>
 <script type="text/javascript">
var timeout         = 500;
var closetimer		= 0;
var ddmenuitem      = 0;

function jsddm_open()
{	jsddm_canceltimer();
	jsddm_close();
	ddmenuitem = $(this).find('ul').eq(0).css('visibility', 'visible');
	
	}

function jsddm_close()
{	if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');
}

function jsddm_timer()
{	closetimer = window.setTimeout(jsddm_close, timeout);
   
}

function jsddm_canceltimer()
{	if(closetimer)
	{	window.clearTimeout(closetimer);
		closetimer = null;}}

$(document).ready(function()
{	$('#jsddm > li').bind('mouseover', jsddm_open);
	$('#jsddm > li').bind('mouseout',  jsddm_timer);});

document.onclick = jsddm_close;
</script>	


<script language="JavaScript" type="text/JavaScript">
 function toggle(targetid){
 	document.getElementById("div"+targetid).style.display="block";        
 	for(var i =1;i<=8;i++){
		if(targetid != i){
			document.getElementById("div"+i).style.display="none";
		}
	}
 }
 </script>	

<script type="text/javascript">

$('.newslist').kkPages({
   PagesClass:'li', //需要分页的元素
   PagesMth:12, //每页显示个数
   PagesNavMth:5 //显示导航个数
});


$('.bxslider1').bxSlider({
  auto:true,
  infiniteLoop: true,
  hideControlOnEnd: true
});
</script>

</body>
</html>
